package j05linkedhashmap;

import java.util.Map;
import java.util.TreeMap;

public class J2treemap {
    public static void main(String[] args) {
//        Map<String,String> map = new TreeMap<>();
        Map<String,String> map = new TreeMap<>(
                (s1,s2)->s2.compareTo(s1)
        );
        map.put("B","www");
        map.put("A","kkkk");
        map.put("F","mmmmm");
        System.out.println("map = " + map);
    }
}
